<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<script type="text/javascript" src="<%=basePath%>js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jquery.cycle.all.js"></script>
<script type="text/javascript">
<!--
$(function(){
	$('#pics').cycle({ 
        fx:    'scrollRight' 
       });

});
//-->
</script>
     <!-- 通知 -->
     <div class="span4" id="content" style='margin-left:0px;'>
        <div class="panel">
            <div class="panel-heading word tou"><a href='<%=basePath%>nb/xsgznews_1'>通知</a></div>	     
    		<div style="border:2px;align:center;height:360px;">
    		  
         <table class="table table-hover"  >
          <c:forEach items="${news }" var="i">
             <tr >
              <td  class='title'  ><div class='texthidden4'><a href='<%=basePath %>nb/detail/${i.id }'  title="${i.title }">${i.title }</a></div></td>
              
              <td style=''>${i.publishDate }</td>
           </tr>
          </c:forEach>
           
		</table>
    	   </div>
       </div>
    </div><!-- end of 通知 -->
    
    <!-- 图片展示 -->
     <div class="span8"  id="body-content" >
	    <div class="panel"> 
            <div class=" " id="pics" style='margin:0 auto'>
			<c:if test="${not empty images }">
               <c:forEach items='${ images}' var='i'>
					<img style='max-width:530px;min-height:405px;align:center;margin:0 auto;' 
					alt="" src="<%=basePath%>${i.imgUrl }" />
				</c:forEach>
            </c:if>
			<c:if test="${ empty picnews  }">
				<img style='max-width:530px;min-height:405px;align:center;margin:0 auto;' alt=""
					src="<%=basePath%>images/qzlx.jpg" />
				<img style='max-width:530px;min-height:405px;align:center;margin:0 auto;' alt=""
					src="<%=basePath%>images/2.png" />
				<img style='max-width:530px;min-height:405px;align:center;margin:0 auto;' alt=""
					src="<%=basePath%>images/1.jpg" />
			</c:if>
			<c:if test="${not  empty picnews  }">
				<c:forEach items='${ picnews}' var='i'>
					<img style='max-width:530px;min-height:405px;align:center;margin:0 auto;' alt="" src="${i.url }" />
				</c:forEach>
			</c:if>
		</div>
       </div>    
    </div><!-- end of 图片展示 -->
     
    <div class='span12' style='margin-left:0px;'>
     <!-- 公示 -->
     <div class="span8" id="content" style='margin-left:0px;'>
        <div class="panel">	
         <div class="panel-heading word tou"><a href='<%=basePath%>nb/xsgzb_1'>公示</a></div>	
    		<div style="border:2px;align:center;height:300px;">
    		   
    		     <table class="table table-hover"  >
          <c:forEach items="${bulletins }" var="i">
             <tr >
              <td  class='title'  ><div class='texthidden2'><a href='<%=basePath %>nb/detail/${i.id }'  title="${i.title }">${i.title }</a></div></td>
               
              
              <td style=''>${i.publishDate }</td>
           </tr>
          </c:forEach>
           
		</table>
    	   </div>
    	       
       </div>
    </div><!-- end of 公示 -->


       <!-- SubMenu -->
    <c:forEach items="${subMenuNames }" var="names">
	    <div class="span4" id="content" style='margin-left:17px;'>
	       <div class="panel">	
	        <div class="panel-heading word tou">${names }</div>
	   		<div style="border:2px;align:center; height:300px;">
	   		<table class="table table-hover"  >
	   		  <c:forEach items="${articles }" var="article">
    		  	<c:if test="${article.menuName==names }">
				  <tr><td><a href="<%=basePath%>article/read?id=${article.id }&view=xsgz">${article.title }</a></td></tr>
				</c:if>
			  </c:forEach>
			</table>
	   		    
	   	   </div>
	   	  	     
	      </div>
	   </div><!-- end of SubMenu -->
	</c:forEach>

    
   
 
    </div>